
package com.limoilux.cobolux.ui.wizards;

import com.limoilux.cobolux.core.RessourceCreator;
import com.limoilux.cobolux.core.SourceCreator;

public class SourceWizard extends RessourceWizard
{
	public static final String EXTENSION = "com.limoilux.cobolux.wizards.source";
	private SourceWizardPage page;

	public SourceWizard()
	{

	}

	@Override
	public void addPages()
	{
		this.page = new SourceWizardPage(this.selection);
		this.addPage(this.page);
	}

	@Override
	public RessourceCreator defineCreator()
	{
		SourceCreator creator = new SourceCreator();

		creator.containerName = this.page.getContainerName();
		creator.fileName = this.page.getFileName();

		return creator;
	}

}
